//
//  TestJSObject.h
//  TestJSOC
//
//  Created by 西游 on 7/25/15.
//  Copyright (c) 2015 com.xiyou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
#import "ShareView.h"
//首先创建一个实现了JSExport协议的协议
@protocol TestJSObjectProtocol <JSExport>

//此处我们测试几种参数的情况
-(NSString*)getUserInfo;
-(void)toLogin;
-(void)toProductDetail:(NSString *)message;
-(void)doShare:(NSString*)message;
-(void)goShoping;
-(void)TestOneParameter:(NSString *)message;
-(void)TestTowParameter:(NSString *)message1 SecondParameter:(NSString *)message2;

@end

//让我们创建的类实现上边的协议
@interface TestJSObject : NSObject<TestJSObjectProtocol>
@property(nonatomic,assign)id vcDelegate;
@end
